<%@ tag pageEncoding="UTF-8" %>
<%@ include file="inc/taglibs.jsp" %>
<%@ tag import="org.apache.commons.beanutils.BeanUtils" %>	
<%@ tag import="com.pearlsoft.util.StringUtils" %>

<%-- 通用属性  --%>
<%@ attribute rtexprvalue="true" required="false" name="var"%>
<%@ attribute rtexprvalue="true" required="false" name="id"%>
<%@ attribute rtexprvalue="true" required="false" name="config" 
	description="如果为true，只输出配置项，如果为false，输出内容如new cmpclass(config)，默认为false"%>
<%@ attribute rtexprvalue="true" required="false" name="disabled"%>
<%@ attribute rtexprvalue="true" required="false" name="hidden"%>
<%@ attribute rtexprvalue="true" required="false" name="renderTo"%>
<%@ attribute rtexprvalue="true" required="false" name="scripts"%>
<%@ attribute rtexprvalue="true" required="false" name="styles"%>
<%@ attribute rtexprvalue="true" required="false" name="width" %>
<%@ attribute rtexprvalue="true" required="false" name="height" %>
<%@ attribute rtexprvalue="true" required="false" name="autoScroll" %>



<%-- UI特性  --%>
<%@ attribute rtexprvalue="true" required="false" name="title" %>
<%@ attribute rtexprvalue="true" required="false" name="closable" %>
<%@ attribute rtexprvalue="true" required="false" name="closeText" %>
<%@ attribute rtexprvalue="true" required="false" name="handler" %>
<%@ attribute rtexprvalue="true" required="false" name="html" %>
<%@ attribute rtexprvalue="true" required="false" name="iconCls" %>
<%@ attribute rtexprvalue="true" required="false" name="text" %>

<plst:cmpResources scripts="${scripts}" styles="${styles}" >
	<plsc:component name="Ext.tab.Tab" var="${var}" config="true"  >
	
		<plsc:attr name="id" test="${!empty(id)}">${id}</plsc:attr>
		<plsc:attr name="xtype" test="${config == true}">tab</plsc:attr>
		<plsc:attr name="disabled" test="${!empty(disabled)}" type="boolean" >${disabled}</plsc:attr>
		<plsc:attr name="hidden" test="${!empty(hidden)}" type="boolean" >${hidden}</plsc:attr>		
		<plsc:attr name="renderTo" test='<%=StringUtils.isNotEmpty(renderTo)%>'
			type='<%= StringUtils.getRenderType(renderTo)%>'>${renderTo}</plsc:attr>
		<plsc:attr name="width" test="${!empty(width)}"  type="int" >${width}</plsc:attr>
		<plsc:attr name="height" test="${!empty(height)}"  type="int" >${height}</plsc:attr>
		<plsc:attr name="autoScroll" type="boolean">${empty(autoScroll)?true:autoScroll}</plsc:attr>
		<%-- UI特性  --%>
		<plsc:attr name="title" test="${!empty(title)}"  type="string" >${title}</plsc:attr>
		<plsc:attr name="closable" test="${!empty(closable)}"  type="boolean" >${closable}</plsc:attr>
		<plsc:attr name="closeText" test="${!empty(closeText)}"  type="string" >${closeText}</plsc:attr>
		<plsc:attr name="closable" test="${!empty(closable)}"  type="boolean" >${closable}</plsc:attr>
		<plsc:attr name="handler" type="direct" test="${!empty(handler)}">${handler}</plsc:attr>
		<plsc:attr name="html" test="${!empty(html)}"  type="direct" >${html}</plsc:attr>
		<plsc:attr name="iconCls" test="${!empty(iconCls)}"  type="string" >${iconCls}</plsc:attr>
		<plsc:attr name="text" test="${!empty(text)}"  type="string" >${text}</plsc:attr>
		<jsp:doBody/>
		</plsc:component>
</plst:cmpResources>